package com.qianbao.qianbaobusiness.json;

import android.support.annotation.Keep;

import java.io.Serializable;
import java.util.List;

@Keep
public class MerchantInfo implements Serializable {
    private static final long serialVersionUID = 6341403649616021856L;
    public String  merchantNo;
    public String  merchantName;
    public String  categoryName;
    public String  subcategoryName;
    public String  shopAddress;
    public String  mobile;
    public String  opentime;
    public String  personaverAge;
    public String  posMerchantNo;
    public String  shopProviceName;
    public String  shopCityName;
    public String  shopDistrictName;
    public String  bhhEnable;
    public String  openTime;
    public String  registerNo;
    public String  registerName;
    public String  businessStartDate;
    public String  businessEndDate;
    public String  businessAddress;
    public String  legalPersonName;
    public String  legalCertNo;
    public String  legalMobile;
    public String  posAccountName;
    public String  posAccountCertNo;
    public String  merchantCategory;
    public String  managerName;
    public String  managerMobile;
    public String  posAccountMobile;
    public boolean loanEntryOpen;
    public String  loanCloseReason;
    public String  roleCode;
    public String  roleName;
    public String  realPersonName;
    public String  realCertNo;
    public String  realMobile;
    public boolean isSelected = true;

    public List<UserPermession> menuList;

    public String getPermissionListString() {
        StringBuilder sb = new StringBuilder();
        for (UserPermession permession : menuList) {
            sb.append(permession.menuCode).append("###");
        }
        return sb.toString();
    }
}
